package com.shop.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

//商品分类表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product_cat")
public class Product_cat implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer catId;//分类id
    private String catName;//分类名称
    private Integer parentId;//父id
    private Integer catstatus;//,#推荐状态 0:推荐 1：不推荐
    private Integer exit1;//
    private String exit2;//
    private String exit3;//
    private String exit4;//
@TableField(exist = false)//表示该字段不存在数据库
    private List<Product_cat> children;//子类
    @TableField(exist = false)//该字段不存在数据库
    private Product_brand pb;//商品品牌表


}
